using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity.ModelConfiguration;
using WMSNet.Model.Models;

namespace WMSNet.Data.Configuration
{
    public class PickReceiptPosConfiguration : EntityTypeConfiguration<PickReceiptPos>
    {
        public PickReceiptPosConfiguration()
        {
            Property(g => g.PickReceiptPosID).IsRequired();
            Property(g => g.AdditionalContent).IsOptional();
            Property(g => g.Created).IsOptional();
            
            Property(g => g.Modified).IsOptional(); 
            Property(g => g.Amount).IsOptional();
            Property(g => g.AmountOrdered).IsOptional();
            Property(g => g.ArticleDescr).IsOptional();
            Property(g => g.ArticleRef).IsOptional();
            Property(g => g.LotRef).IsOptional();
            Property(g => g.ReceiptID).IsRequired();
        }
    }
}
